package com.datuo.dtf.admin.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 分页BEAN
 */
@Getter
@Setter
@ToString
public class PageBean {
    /**
     * 默认每页记录条数
     */
    public static final Integer DEF_PAGE_SIZE = 10;

    /**
     * 每页记录条数
     */
    private Integer pageSize;

    /**
     * 页数
     */
    private Integer pageNum;

    public PageBean() {
        pageSize = DEF_PAGE_SIZE;
        pageNum = 1;
    }

    public PageBean(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

}
